package com.qf.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author：刘亚康
 * @Date：2020/4/7
 * @QQ：50770284
 * @Phone：18235947935
 * @Desc :
 **/
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("toRegister").setViewName("register");
        registry.addViewController("toLogin").setViewName("login");
        registry.addViewController("toFindPassword").setViewName("findPassword");
        registry.addViewController("findPasswordInput").setViewName("findPasswordInput");
    }
}
